package com.itheima.reggie.service;

import com.itheima.reggie.dto.SetmealDto;
import com.itheima.reggie.entity.Page;
import com.itheima.reggie.entity.Setmeal;
import com.itheima.reggie.entity.SetmealDish;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SetmealService {
    Boolean selectCountByCategoryId(Long categoryId);

    Page<SetmealDto> selectAll(String name, Integer page, Integer pageSize);

    //添加套餐
    Boolean addSetmeal(SetmealDto setmealDto);

    //通过id查找指定套餐
    SetmealDto findById(Long id);

    //更新套餐信息
    Boolean update(SetmealDto setmealDto);

    //多选修改出售状态
    Boolean updateStatus(Integer status,Long[] ids);

    //多选删除套餐
    Boolean deleteByIds(Long[] ids);

    //通过categoryId查找指定套餐信息
    List<SetmealDto> findByCategoryIdAndStatus(Long categoryId,Integer status);



}
